$(function() {

	$(document).mousemove(function(ev) {
		$('div').eq(0).css('left', ev.pageX).css('top', ev.pageY);
	});

});

/*
   window.onload = function() {

   oDiv1 = document.getElementById('div1');
//oDiv2 = document.getElementById('div2');

document.onmousemove = moveDiv;
};

var oDiv1 = null;
//var oDiv2 = null;

function moveDiv(ev) {

ev = ev || event;

var scrollLeft = document.documentElement.scrollLeft || 
document.body.scrollLeft;
var scrollTop = document.documentElement.scrollTop || 
document.body.scrollTop;

oDiv1.style.left = ev.clientX + scrollLeft + 'px';
oDiv1.style.top = ev.clientY + scrollTop + 'px';

}
*/
